import request from '@/utils/request'

// 查询学员信息列表
export function listStudent(query) {
  return request({
    url: '/course/Student/list',
    method: 'get',
    params: query
  })
}
export function allStudent(query) {
  return request({
    url: '/course/Student/all',
    method: 'get',
    params: query
  })
}

// 查询学员信息详细
export function getStudent(id) {
  return request({
    url: '/course/Student/view/' + id,
    method: 'get'
  })
}

// 新增学员信息
export function addStudent(data) {
  return request({
    url: '/course/Student/add',
    method: 'post',
    data: data
  })
}

// 修改学员信息
export function updateStudent(data) {
  return request({
    url: '/course/Student/update',
    method: 'put',
    data: data
  })
}
export function updateTkupdateTk(data) {
  return request({
    url: '/course/Student/updateTk',
    method: 'put',
    data: data
  })

}


// 删除学员信息
export function delStudent(id) {
  return request({
    url: '/course/Student/delete/' + id,
    method: 'delete'
  })
}

// 分配学管
export function setLearnId(id, learnId) {
  return request({
    url: '/course/Student/setLearnId/' + id,
    method: 'get',
    params: {
      learnId: learnId
    }
  })
}
